home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / TK-WP10.ZIP / PAGE.PPE (.txt) < prev    next >
PCBoard Programming Language Executable  |  1996-12-12  |  2KB  |  181 lines

  1. ;------------------------------------------------------------------------------
  2. ;                                                   .ss.
  3. ;                                                   `²²'
  4. ;             .,sS$Ss,,s$  .,sS$$$Ss.  .,sS$Ss,,s$ .ss.  .sSs.
  5. ;           .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
  6. ;           $$$'   .$$$' $$$²Sçsµ²' .$$$'   .$$$'.$$$' .$$$'  `$$b.
  7. ;           $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$'    ;$$$
  8. ;           `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
  9. ;                                    .sS²°$$$²²°"'       d²°'
  10. ;                                  .$$²  .$$'
  11. ;                                  $$$.,d$$'
  12. ;                                  `²S$$S²'
  13. ;------------------------------------------------------------------------------
  14. ; P.P.L.X. 2.OO                          (C)1996 - Lone Runner / AEGiS CoRP'96 
  15. ;------------------------------------------------------------------------------
  16. ; PPE 3.2O (Encryption type I) - Analysis ON - Postprocessing ON
  17. ;------------------------------------------------------------------------------
  18.  
  19.     Integer  INTEGER001
  20.     String   STRING003
  21.     String   STRING004
  22.     String   STRING005
  23.     String   STRING006
  24.     String   STRING007
  25.     Declare  Procedure PROC001()
  26.     Declare  Procedure PROC002()
  27.  
  28. ;------------------------------------------------------------------------------
  29.  
  30.     GetUser
  31.     If (Exist(PPEPath() + "page.cfg")) Goto LABEL001
  32.     FCreate 1, PPEPath() + "page.cfg", 1, 0
  33.     FPutLn 1, "15"
  34.     FPutLn 1, "c:\pcb\ppe\sick\chat\chat.ppe"
  35.     FPutLn 1, "-[wizPAGE config]--------------------------------"
  36.     FPutLn 1, "line one: the amount of seconds to page"
  37.     FPutLn 1, "line two: path to your chat.ppe"
  38.     FClose 1
  39.     :LABEL001
  40.     If (Exist(PPEPath() + "page.log")) Goto LABEL002
  41.     FCreate 5, PPEPath() + "page.log", 1, 0
  42.     FPutLn 5, "-- wizPAGE log created at " + String(Time()) + " - " + String(Date())
  43.     FClose 5
  44.     :LABEL002
  45.     STRING006 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!#$%^&*();:,./?><~`-=_+"
  46.     DispFile PPEPath() + "page.pcb", 0
  47.     AnsiPos 3, 7
  48.     Print "@X01enter reason!"
  49.     AnsiPos 3, 5
  50.     InputStr "_", STRING005, 1, 73, STRING006, 16
  51.     If (Len(STRING005) == 0) PROC001()
  52.     FCreate 1, PPEPath() + "page.$$$", 1, 0
  53.     FPutLn 1, Lower(U_Name())
  54.     FPutLn 1, STRING005
  55.     FPutLn 1, Lower(String(U_City))
  56.     FPutLn 1, "no"
  57.     FClose 1
  58.     AnsiPos 3, 7
  59.     FOpen 1, PPEPath() + "page.cfg", 0, 0
  60.     FGet 1, INTEGER001
  61.     FGet 1, STRING003
  62.     FClose 1
  63.     Print "@X01paging sysop with hsc music!. wait for " + String(INTEGER001) + " seconds dude!"
  64.     Shell 1, STRING007, PPEPath() + "wizpage.exe", 0
  65.     FAppend 1, PPEPath() + "page.log", 1, 0
  66.     FPutLn 1, Lower(U_Name()) + "  π  " + String(Time()) + "  π  " + String(Date()) + "  π  " + STRING005
  67.     FClose 1
  68.     PageOn
  69.     U_Cmnt1 = STRING005
  70.     U_Cmnt2 = ""
  71.     PutUser
  72.     STRING004 = ReadLine(PPEPath() + "page.$$$", 4)
  73.     If (STRING004 == "yes") PROC002()
  74.     DispFile PPEPath() + "page.pcb", 0
  75.     AnsiPos 3, 5
  76.     Print STRING005
  77.     AnsiPos 3, 7
  78.     Print "@X01sorry, the sysop is away! .. try again later.                        "
  79.     AnsiPos 1, 9
  80.     Wait
  81.     End
  82.  
  83. ;------------------------------------------------------------------------------
  84.  
  85.     Procedure PROC002()
  86.  
  87.     Call STRING003
  88.     End
  89.  
  90.     EndProc
  91.  
  92.  
  93. ;------------------------------------------------------------------------------
  94.  
  95.     Procedure PROC001()
  96.  
  97.     Cls
  98.     PrintLn "@X09@X08 -- @X09p@X01age reason too small@X08. @X09t@X01ry typing a little more@X08!"
  99.     End
  100.  
  101.     EndProc
  102.  
  103.  
  104. ;------------------------------------------------------------------------------
  105. ;
  106. ; Usage report (before postprocessing)
  107. ;
  108. ; ■ Statements used :
  109. ;
  110. ;    3       End
  111. ;    1       Cls
  112. ;    1       Wait
  113. ;    2       Goto 
  114. ;    4       Let 
  115. ;    4       Print 
  116. ;    1       PrintLn 
  117. ;    4       If 
  118. ;    2       DispFile 
  119. ;    3       FCreate 
  120. ;    1       FOpen 
  121. ;    1       FAppend 
  122. ;    5       FClose 
  123. ;    2       FGet 
  124. ;    11      FPutLn 
  125. ;    1       GetUser
  126. ;    1       PutUser
  127. ;    1       InputStr 
  128. ;    1       Shell 
  129. ;    1       Call 
  130. ;    6       AnsiPos 
  131. ;    1       PageOn
  132. ;    2       EndProc
  133. ;
  134. ;
  135. ; ■ Functions used :
  136. ;
  137. ;    22      +
  138. ;    2       ==
  139. ;    1       Len(
  140. ;    3       Lower()
  141. ;    2       Date()
  142. ;    2       Time()
  143. ;    2       U_Name()
  144. ;    6       String()
  145. ;    11      PPEPath()
  146. ;    1       ReadLine()
  147. ;    2       Exist()
  148. ;
  149. ;------------------------------------------------------------------------------
  150. ;
  151. ; Analysis flags : WSC
  152. ;
  153. ; W - Write user ■ 5
  154. ;     Program writes a user record. Although this may be normal for a
  155. ;     User Editor, it may also be a way to modify an account level.
  156. ;     ■ Search for : PUTUSER
  157. ;
  158. ; S - Shell to DOS ■ 5
  159. ;     This may be normal if the PPE need to execute an external command,
  160. ;     but may be actually anything... nasty (formating HD, rebooting,...)
  161. ;     or usefull (sorting, maintenance,...). Check!
  162. ;     ■ Search for : SHELL
  163. ;
  164. ; C - Call child PPE ■ 3
  165. ;     This is usually normal, but may be a tricky way to launch some
  166. ;     sysop-only commands.
  167. ;     ■ Search for : CALL
  168. ;
  169. ;------------------------------------------------------------------------------
  170. ;
  171. ; Postprocessing report
  172. ;
  173. ;    0       For/Next
  174. ;    0       While/EndWhile
  175. ;    0       If/Then or If/Then/Else
  176. ;    0       Select Case
  177. ;
  178. ;------------------------------------------------------------------------------
  179. ;                 AEGiS Corp - Break the routines, code against the machines!
  180. ;------------------------------------------------------------------------------
  181.